<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>收货人信息表单</title>
    <style>
        /* 页面整体样式 */
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 40px;
            background-color: #f9f9f9;
            padding: 20px;
        }

        /* 表单容器 */
        .form-container {
            max-width: 500px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        /* 标签样式 */
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        /* 输入框通用样式 */
        .form-input {
            width: 100%;
            padding: 12px;
            border: 2px solid #4a90e2; /* 默认蓝色边框 */
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s ease; /* 添加过渡效果 */
            box-sizing: border-box;
        }

        /* 输入框获取焦点时的样式 */
        .form-input:focus {
            outline: none; /* 移除默认轮廓 */
            border-color: red; /* 边框变为红色 */
        }

        /* 文本域样式 */
        .form-textarea {
            width: 100%;
            height: 120px;
            padding: 12px;
            border: 2px solid #4a90e2;
            border-radius: 5px;
            font-size: 16px;
            resize: vertical; /* 允许垂直调整大小 */
            transition: border-color 0.3s ease;
            box-sizing: border-box;
        }

        .form-textarea:focus {
            outline: none;
            border-color: red;
        }

        /* 单选按钮组样式 */
        .radio-group {
            margin: 15px 0;
        }

        .radio-option {
            margin-right: 15px;
        }

        /* 复选框样式 */
        .checkbox-group {
            margin: 15px 0;
            display: flex;
            align-items: center;
        }

        .checkbox-label {
            margin-left: 5px;
            font-weight: normal;
        }

        /* 提交按钮样式 */
        .submit-btn {
            background-color: #4a90e2;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 20px;
            transition: background-color 0.3s ease;
        }

        .submit-btn:hover {
            background-color: #3a7bc8;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <form>
            <!-- 收货人 -->
            <div class="form-group">
                <label for="recipient" class="form-label">收货人</label>
                <input type="text" id="recipient" name="recipient" class="form-input" required>
            </div>

            <!-- 手机号码 -->
            <div class="form-group">
                <label for="phone" class="form-label">手机号码</label>
                <input type="tel" id="phone" name="phone" class="form-input" required>
            </div>

            <!-- 所在地区 -->
            <div class="form-group">
                <label for="region" class="form-label">所在地区</label>
                <input type="text" id="region" name="region" class="form-input" required>
            </div>

            <!-- 详细地址 -->
            <div class="form-group">
                <label for="address" class="form-label">详细地址</label>
                <textarea id="address" name="address" class="form-textarea" required></textarea>
            </div>

            <!-- 标签 -->
            <div class="form-group radio-group">
                <label class="form-label">标签</label>
                <div>
                    <label class="radio-option">
                        <input type="radio" name="tag" value="home" checked> 家
                    </label>
                    <label class="radio-option">
                        <input type="radio" name="tag" value="company"> 公司
                    </label>
                    <label class="radio-option">
                        <input type="radio" name="tag" value="school"> 学校
                    </label>
                </div>
            </div>

            <!-- 设置为默认地址 -->
            <div class="form-group checkbox-group">
                <label class="form-label">设置为默认地址</label>
                <input type="checkbox" name="default" checked>
            </div>

            <!-- 提交按钮 -->
            <button type="submit" class="submit-btn">提交</button>
        </form>
    </div>
</body>
</html>